MailPoet\API\JSON\API S

Total Complexity 46
Dependencies 19
Dependents 6
Total lines 256
Lines of code 181
Logical lines of code 84
Comment lines 16
Methods 14
Properties 14

Methods 14

Method Rating Maintainability Complexity Lines of code
setRequestData()
A
43 15 48
processRoute()
A
46 11 36
setupAjax()
S
54 6 20
__construct()
S
61 2 13
init()
S
59 1 18
validatePermissions()
S
72 2 5
addEndpointNamespace()
S
74 2 4
setTokenAndAPIVersion()
S
64 1 11
checkToken()
S
79 1 3
addTokenToHeartbeatResponse()
S
76 1 4
getEndpointNamespaces()
S
82 1 3
getRequestedEndpointClass()
S
82 1 3
getRequestedAPIVersion()
S
82 1 3
createErrorResponse()
S
66 1 10